package com.aaa.dao;

import com.aaa.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity com.aaa.entity.Menu
 */
public interface MenuMapper {

    /**
     * 根据员工id查询菜单
     * @param staffId 员工id
     * @return
     */
    public List<Menu> selectAll(Integer staffId);

    List<Menu> selectAll02();

    List<Integer> selectMid(Integer roleId);

    int deleteByRoleId(Integer roleId);

    int batchInsert(@Param("roleId") Integer roleId, @Param("menuIds") Integer[] menuIds);
}




